import request from "./index";
// 获取轮播图
const getSwipers = () => request.get('/home/swiper');

// 获取租房小组列表
const getgroup = (area) => request.get('/home/groups?area=' + area);

// 获取最新资讯
const getNews = (area) => request.get('/home/news?area=' + area);

// 获取有信息的城市
const getCity = (name) => request.get('/area/info?name=' + name);

// 获取城市列表
const getCityList = () => request.get('/area/city?level=1')

//获取热门城市
const getHotCity = () => request.get('/area/hot');

// 获取房源信息
const getAreaMapInfo = (id) => request.get('/area/map?id=' + id);

// 获取房屋信息
const getHouseList = (cityId) => request.get('/houses?cityId=' + cityId);

//获取当前地区的所有房源
const getAllHouseList = (id) => request.get('/houses?id=' + id);


export {
    getSwipers, getgroup, getNews, getCity, getCityList, getHotCity, getAreaMapInfo, getHouseList
    , getAllHouseList
}